package com.cositas.dulces.lp.action.impl;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.cositas.dulces.lp.ApplicationFacade;
import com.cositas.dulces.lp.action.Action;
import com.cositas.dulces.lp.action.BackendAction;

public class SetShoppingCartProcessedAction implements Action {

	public void doAction(HttpServletRequest req, HttpServletResponse resp) throws IOException {
		BackendAction.checkUser();
		long id = Long.parseLong(req.getParameter("id"));
		ApplicationFacade.setProcessed(id);
		resp.getWriter().println("OK");
	}
}
